﻿using System;

namespace Read.Models
{
    public class QueryParams
    {
        public QueryParams()
        {
            this.Index = 1;
            this.Size = 10;
        }
        /// <summary>
        /// 通用查询ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 当前页数索引
        /// </summary>
		public int Index { get; set; }

        /// <summary>
        /// 每页显示数
        /// </summary>
		public int Size { get; set; }

        // /// <summary>
        // /// 总条数
        // /// </summary>
        // public int Total { get; set; }

        // /// <summary>
        // /// 总页码
        // /// </summary>
        // public int PageCount
        // {
        //     get
        //     {
        //         return Convert.ToInt32(Math.Ceiling((double)Total / (double)Size));
        //     }
        // }
    }
}
